﻿using System;

namespace WiMo.Games.OpenGLDisplay
{
    static class Helpers
    {
        public static System.Drawing.Color ToDrawingColor(this Color color)
        {
            return System.Drawing.Color.FromArgb(color.R, color.G, color.B);
        }

        public static System.Drawing.Rectangle ToDrawingRect(this Rectangle rect)
        {
            return new System.Drawing.Rectangle(rect.X, rect.Y, rect.Width, rect.Height);
        }
    }
}
